package cn.bdqn.dao;

import cn.bdqn.entity.Users;

import java.util.List;

/**
 * @author 梁非凡
 * @date 2018/8/13 16:30
 */
public interface Usersdao {
    //查询名字跟密码是否正确
    Users findbyidandname(String name,String password)throws Exception;
    //根据id修改密码
    Integer amend(String pwd,Integer id) throws Exception;
    //根据id修改用户状态
    Integer logout(Users users)throws Exception;
    //根据条件查询总条数
    Integer findAll(String name) throws  Exception;
    //根据条件查询数据
    List<Users> findpageByname(String name, Integer startIndex, Integer pageSize)throws  Exception;
}
